package com.ruoyi.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单评价对象 cf_evaluate
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
public class CfEvaluate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 自增 */
    private Long id;

    /** 用户id 【外键】 */
    @Excel(name = "用户id 【外键】")
    private Long userId;

    /** 用户名 */
    private String username;

    /** 手机号 */
    private String phone;

    /** 订单id 【外键】 */
    @Excel(name = "订单id 【外键】")
    private Long orderIdw;

    /** 服务名称 */
    private String serviceName;

    /** 评语 */
    @Excel(name = "评语")
    private String comments;

    /** 综合评分（星级） */
    @Excel(name = "综合评分", readConverterExp = "星=级")
    private Long score;

    /** 评价时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commentTime;

    /** 评价图片 */
    private String photo;


    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOrderIdw(Long orderIdw) 
    {
        this.orderIdw = orderIdw;
    }

    public Long getOrderIdw() 
    {
        return orderIdw;
    }
    public void setComments(String comments) 
    {
        this.comments = comments;
    }

    public String getComments() 
    {
        return comments;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setCommentTime(Date commentTime) 
    {
        this.commentTime = commentTime;
    }

    public Date getCommentTime() 
    {
        return commentTime;
    }

    @Override
    public String toString() {
        return "CfEvaluate{" +
                "id=" + id +
                ", userId=" + userId +
                ", username='" + username + '\'' +
                ", phone='" + phone + '\'' +
                ", orderIdw=" + orderIdw +
                ", serviceName='" + serviceName + '\'' +
                ", comments='" + comments + '\'' +
                ", score=" + score +
                ", commentTime=" + commentTime +
                ", photo='" + photo + '\'' +
                '}';
    }
}
